{config_load file="global.conf"}
{config_load file="_history.conf" section="`$lang`"}

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>{$title}</title>
<meta name="keywords" content="{#_history__keywords#}{*finance, forex, stock, market, investment*}">
<meta name="description" content="{#_history__description#}{*Finance Solution for Your Investments*}">
<link href="{#images_dir#}/favicon.ico" rel="shortcut icon">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="styles/main.css" rel="stylesheet" type="text/css">
</head>
<body>

<table align="center" border="0">
<tr>
	<td colspan="3">
		<img alt="{$pair} Forecast.gif" width="800" height="500" style="border: #CCCCCC 1px solid;"
			src="/history_forecast.php?trade={$trade}&start={$start}&finish={$finish}"></img>
	</td>
</tr>
<tr>
	<td align="left" width="20%">
	{if $prev==1} <a href="/history.php?trade={$trade}&start={$p_start}&finish={$p_finish}"><< {#_history__labelPrevious#}{*Previous*}</a>
	{else} << {#_history__labelPrevious#}{*Previous*}
	{/if}	
	</td>
	{*----------------------------------------------------------------------------------------------------------*}
	
	<td align="center" width="60%">
	{assign var="first" value="1"}
	{foreach key="TradeID" name="pairs" item="itemPair" from=$pairsArr}
		{if !$first}|
		{else}{assign var="first" value="0"}
		{/if}
		{if $trade==$itemPair.TradeID} {$itemPair.Pair}
		{else} <a href="/history.php?trade={$itemPair.TradeID}&start={$start}&finish={$finish}">{$itemPair.Pair}</a>
		{/if}
	{/foreach}
	</td>
	
	{*----------------------------------------------------------------------------------------------------------*}
	<td align="right" width="20%">
	{if $next==1} <a href="/history.php?trade={$trade}&start={$n_start}&finish={$n_finish}">{#_history__labelNext#}{*Next*} >></a>
	{else} {#_history__labelNext#} >>
	{/if}
	</td>
</tr>
</table>

</body>
</html>
